package com.xk.demo.department.respository;

import com.xk.demo.department.entity.SearchDepartmentEntity;
import com.xk.demo.mybatis.entity.PtDepartmentEntity;
import com.xk.demo.mybatis.flexigrid.PagingBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentDao {
    List<PtDepartmentEntity> queryDepartmentListByPage(@Param("search") SearchDepartmentEntity search,@Param("paging") PagingBean paging);

    Integer queryDepartmentListTotal(@Param("search") SearchDepartmentEntity search);

    void deleteDepartmentById(@Param("depUuid") String depUuid);


    //muyinsong
    //根据部门名称查询部门信息
     PtDepartmentEntity selectPtDepartmentByBranchName(@Param("branchName") String branchName);

     List<PtDepartmentEntity> selectAllDepartment();



}
